{#图书入库页面#}

{% extends "index.html" %}
{% block result %}
    <form action="{{ url_for('base.input_book') }}" class='d_form' method="POST">
        <h3>图书入库</h3>
        <label>
            <input type='text' name='id' value placeholder='请输入图书ID'>
        </label>
        <label>
            <input type='text' name='name' value placeholder='请输入图书名称'>
        </label>
        <label>
            <input type='text' name='author' value placeholder='请输入图书作者'>
        </label>
        <label>
            <select name="type">
                <option value="" style="color: #666" selected>请选择图书类型</option>
                <option value=""></option>
                <option value="社会科学">社会科学</option>
                <option value="自然科学">自然科学</option>
            </select>
        </label>
        <label>
            <input type='text' name='publish' value placeholder='请输入图书出版社'>
        </label>
        <label>
            <input type='number' name='publish_time' value placeholder='请输入图书出版时间'>
        </label>
        <label>
            <input type='number' name='price' value placeholder='请输入图书价格'>
        </label>
        <label>
            <input type='number' name='amount' value placeholder='请输入该图书的数量'>
        </label>
        {% for message in get_flashed_messages() %}
            <div class="form-group">
                <div class="text-danger">{{ message }}</div>
            </div>
        {% endfor %}
        <input id='submit' type='submit' name='submit' value='添加'>

    </form>

{% endblock %}

